package com.softer.wxzj.service.impl;

import com.softer.wxzj.common.entity.CommonResult;
import com.softer.wxzj.entity.SysLoginInfo;
import com.softer.wxzj.mapper.SysLoginInfoMapper;
import com.softer.wxzj.service.SysLoginInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Gong Zhiyang
 * @date 2020/5/12
 */
@Service
public class SysLoginInfoServiceImpl implements SysLoginInfoService {
    @Autowired
    private SysLoginInfoMapper loginInfoMapper;

    /**
     * 新增登录信息
     *
     * @param loginInfo 登录信息
     * @return 新增结果
     */
    @Override
    public CommonResult insertLoginInfo(SysLoginInfo loginInfo) {
        int num = loginInfoMapper.insertLoginInfo(loginInfo);
        return CommonResult.ResponseResult(num);
    }
}
